<%@page language="java" pageEncoding="UTF-8"%>
<%@page import="org.firecloud.h5fun.model.javabean.*"%>
<%@page import="java.util.List"%>
<div>
	<%
		@SuppressWarnings("unchecked")
		List<ApplicationBean> list = (List<ApplicationBean>) request.getAttribute(request.getParameter("dataName"));
		for (ApplicationBean app : list) {
	%>
	<div class="image-text shadow-box">
		<a href="ShowApplication?id=<%=app.getId()%>"> <img
			class="image-text-img" alt="项目图片"
			src="files/image/<%=app.getProject().getImageFileName()%>" />
		</a>
		<div class="image-text-txt">
			<a href="ShowApplication?id=<%=app.getId()%>">
				<div class="image-text-title"><%=app.getName()%></div>
			</a>
			<div class="image-text-context"><%=app.getContext()%></div>
			<div class="image-text-tags">
				<a href="ShowUserInfo?id=<%=app.getUser().getId()%>">
					<div class="image-text-tag">
						<i class="icon-user"><%=app.getUser().getName()%></i>
					</div>
				</a>
				<div class="image-text-tag">
					<i class="icon-eye"><%=app.getClick()%></i>
				</div>
				<div class="image-text-tag">
					<i class="icon-bubble"><%=app.getCommentary()%></i>
				</div>
				<a href="EditApplication?id=<%=app.getId()%>">
					<div class="image-text-tag">
						<i class="icon-pencil">编辑</i>
					</div>
				</a> <a href="javascript:void();" onclick="deleteApplication(<%=app.getId()%>,'<%=app.getName()%>')">
					<div class="image-text-tag">
						<i class="icon-bin">删除</i>
					</div>
				</a>
				<div class="clear-both"></div>
			</div>
		</div>
		<div class="clear-both"></div>
	</div>
	<%
		}
	%>
	<div class="clear-both"></div>
</div>